package cn.hinglo.common.plugin.mqtt;

import com.jfinal.plugin.IPlugin;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @createTime: 2020/3/30 : 14:57
 * @author: HingLo
 * @description: mqtt 插件
 */
@Slf4j
@Data
public class MqttPlugin implements IPlugin {

    @Override
    public boolean start() {
        MqttManager mqttManager = MqttManager.getSingleton();
        return mqttManager.start();
    }

    @Override
    public boolean stop() {
        MqttManager mqttManager = MqttManager.getSingleton();
        return mqttManager.stop();
    }
}
